package cn.edu.ncu.bootwebsocketmybatis.service;

import cn.edu.ncu.bootwebsocketmybatis.entity.User;

import java.util.List;

/**
 * @auther: Liu Zedi.
 * @date: Create in 2018/12/17  14:40
 * @package: cn.edu.ncu.bootwebsocketmybatis.service
 * @project: boot-websocket-mybatis
 */
public interface UserService {

     List<User> findAll();
     List<User> findByName(String userName);
     List<User> findByIdOrName(String id,String userName);
     User findById(String id);
     String addUser(User user);
     boolean updateUser(User user);
     boolean updateUserName(User user);
     boolean updatePassword(User user);

}
